package cn.elricyu.tt.bean.food;

import cn.elricyu.tt.bean.FunctionBean;

public class MyFood extends FunctionBean {
	private double buyprice;
	private double price;
	private boolean isup;
	private int bsmax;
	private int crutrade;
	private int maxtrade;

	public double getBuyprice() {
		return buyprice;
	}

	public void setBuyprice(double buyprice) {
		this.buyprice = buyprice;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public boolean isIsup() {
		return isup;
	}

	public void setIsup(boolean isup) {
		this.isup = isup;
	}

	public int getBsmax() {
		return bsmax;
	}

	public void setBsmax(int bsmax) {
		this.bsmax = bsmax;
	}

	public int getCrutrade() {
		return crutrade;
	}

	public void setCrutrade(int crutrade) {
		this.crutrade = crutrade;
	}

	public int getMaxtrade() {
		return maxtrade;
	}

	public void setMaxtrade(int maxtrade) {
		this.maxtrade = maxtrade;
	}

	public boolean hasTradeAmount() {
		return maxtrade > crutrade;
	}

	public int getTradeAmount() {
		return maxtrade - crutrade;
	}

}
